
<!DOCTYPE HTML>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<%
    String path = request.getContextPath();
%>
<head>
    <meta charset="utf-8">
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <!--[if lt IE 9]>
    <script type="text/javascript" src="<%=path%>/Manage/static/lib/html5shiv.js"></script>
    <script type="text/javascript" src="<%=path%>/Manage/static/lib/respond.min.js"></script>
    <![endif]-->
    <link href="<%=path%>/Manage/static/h-ui/css/H-ui.min.css" rel="stylesheet" type="text/css" />
    <link href="<%=path%>/Manage/static/h-ui.admin/css/H-ui.login.css" rel="stylesheet" type="text/css" />
    <link href="<%=path%>/Manage/static/h-ui.admin/css/style.css" rel="stylesheet" type="text/css" />
    <link href="<%=path%>/Manage/static/lib/Hui-iconfont/1.0.8/iconfont.css" rel="stylesheet" type="text/css" />
    <!--[if IE 6]>
    <script type="text/javascript" src="<%=path%>/Manage/static/lib/DD_belatedPNG_0.0.8a-min.js" ></script>
    <script>DD_belatedPNG.fix('*');</script>
    <![endif]-->
    <title>等你回家后台登陆</title>


</head>
<body>
<input type="hidden" id="TenantId" name="TenantId" value="" />

<div class="loginWraper">

    <div id="loginform" class="loginBox">
        <div style="font-size: medium;padding-left:200px">等你回家后台登陆</div>
        <form id="form" class="form form-horizontal" action="<%=path%>/manage/login" method="post">
            <div class="row cl">
                <label class="form-label col-xs-3"><i class="Hui-iconfont">&#xe60d;</i></label>
                <div class="formControls col-xs-8">
                    <input  id="account" name="account" type="text" placeholder="账户" class="input-text size-L">
                </div>
            </div>
            <div class="row cl">
                <label class="form-label col-xs-3"><i class="Hui-iconfont">&#xe60e;</i></label>
                <div class="formControls col-xs-8">
                    <input  name="password" type="password" placeholder="密码" class="input-text size-L">
                </div>
            </div>
            <div class="row cl">
                <div class="formControls col-xs-8 col-xs-offset-3">
                   <div id="codeErr">请输入验证码</div><input class="input-text size-L" id="code" name="code" type="text" placeholder="验证码"   style="width:150px;">
                    <img id="randcode" src="<%=path%>/Code" onclick="this.src='<%=path%>/Code?'+Math.random()"/> </div>
            </div>

                <div class="row cl">
                <div class="formControls col-xs-8 col-xs-offset-3">
                    <input name="" type="submit" id="but" class="btn btn-success radius size-L" value="&nbsp;登&nbsp;&nbsp;&nbsp;&nbsp;录&nbsp;">
                    <input name="" type="reset" class="btn btn-default radius size-L" value="&nbsp;取&nbsp;&nbsp;&nbsp;&nbsp;消&nbsp;">
                </div>
            </div>
            <div id="#codeErr">

            </div>
        </form>
        <div style="padding-left:200px;color: red" >
            <c:if test="${!empty(param.err) and param.err eq 'adminErr'}">
                <p>请输入正确的用户名或密码</p>
            </c:if>
            <c:if test="${!empty(param.err) and param.err eq 'MarkErr'}">

                <p id="MarkErr">您的账户已被禁用</p>
                <p>封禁理由：${sessionScope.info}</p>
                    </c:if>
        </div>
    </div>

</div>

    <div class="footer">等你回家团队</div>
<script type="text/javascript" src="<%=path%>/Manage/static/lib/jquery/1.9.1/jquery.min.js"></script>
<script type="text/javascript" src="<%=path%>/Manage/static/h-ui/js/H-ui.min.js"></script>
<!--此乃百度统计代码，请自行删除-->
<script>
   $(function () {
       var error_code =true;
       $("#code").blur(function(){
           var action = "<%=path%>/manage/checkCode";
           var code = $("#code").val();
           $.get(action,{code:code},function (mes) {
               if(mes=="false"){
                $("#codeErr").html("验证码输入错误")
                $("#codeErr").css("color","red")
                   error_code = true;
               }
               if(mes=="true"){
                   $("#codeErr").html("验证码输入正确")
                   $("#codeErr").css("color","green")
                   error_code = false;
               }
           })
   })
       $(".form").submit(function () {
           if(error_code==false){
               return true;
           }
           else {
               return false;
           }
       })
   })
    $(function () {
        $("#reason").click(function () {
            var action = "<%=path%>/manage/reasonn";
            var account = $("#account").val();
            alert(account)
            $.post(action,{account:account},function (mes) {
                alert(mes)
            })
        })
    })
</script>
<!--/此乃百度统计代码，请自行删除
</body>
</html>